package com.ischoolbar.programmer.service.home.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.home.TeaDao;
import com.ischoolbar.programmer.entity.home.Tea;
import com.ischoolbar.programmer.service.home.TeaService;


@Service
public class TeaServiceImpl implements TeaService{

	@Autowired
	private TeaDao teaDao;
	
	@Override
	public List<Tea> findList(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return teaDao.findList(queryMap);
	}

	@Override
	public int getTotal(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return teaDao.getTotal(queryMap);
	}

	@Override
	public int editCommentNum(Long id) {
		// TODO Auto-generated method stub
		return teaDao.editCommentNum(id);
	}

	@Override
	public int editSaleNum(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return teaDao.editSaleNum(queryMap);
	}

	@Override
	public int editStockNum(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return teaDao.editStockNum(queryMap);
	}

	@Override
	public Tea findByTeaname(String name) {
		// TODO Auto-generated method stub
		return teaDao.findByTeaname(name);
	}

	@Override
	public int add(Tea tea) {
		// TODO Auto-generated method stub
		return teaDao.add(tea);
	}

	@Override
	public int edit(Tea tea) {
		// TODO Auto-generated method stub
		return teaDao.edit(tea);
	}

	@Override
	public int delete(String ids) {
		// TODO Auto-generated method stub
		return teaDao.delete(ids);
	}

	@Override
	public Tea findByTeaId(String id) {
		// TODO Auto-generated method stub
		return teaDao.findByTeaId(id);
	}

	
	
}
